import Vue from 'vue'
import VueRouter from 'vue-router'

import Login from "@/views/Login";

//引入子路由
import home from "@/router/home";

Vue.use(VueRouter)


const router= new VueRouter({
  routes:[
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/Home',
      name: 'Home',
      component: ()=> import ('@/views/Home'),
    },
    ...home
  ]
})

export default router